import request from '@/utils/request'
import { systemApi } from '@/utils/comm'

// 查询列表
export function listIntroduction(query) {
  return request({
    url: `${systemApi}/introduction/list`,
    method: 'get',
    params: query
  })
}

// 查询详情
export function getIntroduction(id) {
  return request({
    url: `${systemApi}/introduction/` + id,
    method: 'get'
  })
}

// 新增
export function addIntroduction(data) {
  return request({
    url: `${systemApi}/introduction`,
    method: 'post',
    data: data
  })
}

// 修改
export function updateIntroduction(data) {
  return request({
    url: `${systemApi}/introduction`,
    method: 'put',
    data: data
  })
}

// 删除
export function delIntroduction(ids) {
  return request({
    url: `${systemApi}/introduction/` + ids,
    method: 'DELETE',
  })
}